//
//  DeviceHelper.m
//  DeyiLife
//
//  Created by zxin on 15/8/14.
//  Copyright (c) 2015年 Deyi. All rights reserved.
//

#import "DeviceHelper.h"

@implementation DeviceHelper

//+ (NSString*) uuid {
////    CFUUIDRef puuid = CFUUIDCreate( nil );
////    CFStringRef uuidString = CFUUIDCreateString( nil, puuid );
////    NSString * result = (NSString *)CFBridgingRelease(CFStringCreateCopy( NULL, uuidString));
////    NSString *deviceid = [result stringByReplacingOccurrencesOfString:@"-" withString:@""];
////    NSString *strLong = [deviceid stringByAppendingString:@"1234567890123456"];
//    
//    //保持48位
//    NSString *strNewUDID = [SvUDIDTools UDID];
//    strNewUDID = [strNewUDID stringByReplacingOccurrencesOfString:@"-" withString:@""];
//    strNewUDID = [strNewUDID stringByAppendingString:@"1234567890123456"];
//    return strNewUDID;
//}
//
//+ (void)initDeviceID {
//    if ([[UserData deviceId] isEqualToString:@"0"]) {
//        [self getPhoneType];
//        [UserData setDeviceId:[self uuid]];
//    }
//}

+ (NSString *)getPhoneType {
    if([[UIScreen mainScreen] bounds].size.height == 568) {
        //[UserData setFontFix:0];
        return @"iPhone5_5S";
    } else if ([[UIScreen mainScreen] bounds].size.height == 667) {
        //[UserData setFontFix:2];
        return @"iPhone6_7";
    } else if ([[UIScreen mainScreen] bounds].size.height == 736) {
        //[UserData setFontFix:3];
        return @"iPhone6_7Plus";
    }
    
    //[UserData setFontFix:0];
    return @"iPhone4_4s";
}

+ (NSString *)launchImageUrl {
    if(ScreenHeight == 480) {
        return @"pic1";
    } else {
        return @"pic2";
    }
}

//+ (NSInteger)launchImageWidth {
//    
//}
//
//+ (NSInteger)launchImageHeight {
//    
//}

@end
